import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath, URL } from "url"; // 引入 Node.js 的 url 模块
// const path = require('path');

export default defineConfig({
  base: "./",
  plugins: [vue()],
  optimizeDeps: {
    include: ["schart.js"],
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
  build:{
    outDir:'../ProjectScheduling/ProjectScheduling_web/wwwroot',
    emptyOutDir:true
  }
})
